package com.uenpay.service.model;

import com.alibaba.android.arouter.facade.template.IProvider;
import com.uenpay.service.bean.BankCardInfo;
import com.uenpay.service.bean.TransBankCardList;
import com.uenpay.util.net.listener.HttpOnNextListener;
import com.uenpay.util.net.listener.HttpResultListener;

import java.util.List;

/**
 * Author: liulou
 * Date: 2017/6/6.
 * desc:
 */

public interface IBankCardModel extends IProvider {
    /**
     * 用户银行列表查询
     */
    void getUserBankList(HttpOnNextListener<List<BankCardInfo>> listener);

    /**
     * 银行卡bin识别
     */
    void userBankCardBinSelect(String cardNo, HttpOnNextListener<BankCardInfo> listener);

    /**
     * 添加用户银行卡
     */
    void saveUserBank(BankCardInfo info, HttpResultListener listener);

    /**
     * 解绑银行卡
     */
    void relieveUserBankDetail(String userBankId, int status, HttpResultListener listener);

    /**
     * 银行卡图片识别
     */
    void recognitionUserBank(String imgBase64, HttpOnNextListener<BankCardInfo> listener);

    /**
     * 设置默认入账卡接口
     */
    void defaultUserBankDetail(String userBankId, HttpResultListener listener);

    /**
     * 交易银行卡列表查询
     */
    void getTransBankList(String tradeType, HttpOnNextListener<TransBankCardList<BankCardInfo>> listener);
}
